<?php declare(strict_types=1);
use PHPUnit\Framework\TestCase;

final class MathTest extends TestCase
{
    public function testCanBeAdded(): void
    {
        $this->assertEquals(
            4,
            Math::add(2, 2)
        );
    }

    public function testAddingNonInteger(): void
    {
        $this->expectException(InvalidArgumentException::class);
        Math::add('abc', 2);
        Math::add(2, 'abc');
        Math::add('abc', 'abc');
    }

}
